#pragma once

#include "stdafx.h"

#include <vector>
#include <set>

class IndexMap;

class IndexesToSearch
{

friend class IndexMap;

private:

	std::vector<std::pair<std::string, std::vector<int>>> filenameToIndex;

	std::vector<std::pair<std::string, int>> wordToIndex;

public:

	IndexesToSearch();

	~IndexesToSearch();

	bool containsWord(std::string& word, std::string& filename);

	std::set<std::string>* containsWords(std::set<std::string>& words, std::string& filename);

	bool containsIndex(std::string& filename) const;

};